# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-dukpy
_pkgname=dukpy
pkgver=0.3
pkgrel=12
pkgdesc='Python bindings for the duktape embeddable JavaScript engine.'
arch=('x86_64' 'aarch64')
url='https://github.com/kovidgoyal/dukpy'
license=('MIT')
depends=('python')
makedepends=('python-setuptools')
source=("$url/archive/v$pkgver.tar.gz")
sha512sums=('f9e59596a81dcbab72c0708d7e120f8c2060b1d0314084ba75671966aa33e092ff96a8a043240a9938c59d5c72dd7e27910ce2a26c38b2bc91ec0641dd0c68c5')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

